Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with histogram function in parallel #1503

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

cevian
Copy link
Contributor

@cevian cevian commented Oct 29, 2019

Histogram's combine function threw a segfault if both state1
and state2 were NULL. I could only reproduce this case in
PG 10. Add a tests that hits this with PG 10.4

Fixes #1490

@cevian cevian requested a review from gayyappan October 29, 2019 18:18
@cevian cevian added the bug label Oct 30, 2019
@cevian cevian added this to the 1.5.0 milestone Oct 30, 2019
Histogram's combine function threw a segfault if both state1
and state2 were NULL. I could only reproduce this case in
PG 10. Add a tests that hits this with PG 10.4

Fixes timescale#1490
@codecov
Copy link

codecov bot commented Oct 30, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@db23139). Click here to learn what that means.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1503   +/-   ##
=========================================
  Coverage          ?   91.81%           
=========================================
  Files             ?      142           
  Lines             ?    20511           
  Branches          ?        0           
=========================================
  Hits              ?    18832           
  Misses            ?     1679           
  Partials          ?        0
Flag Coverage Δ
#pr 91.81% <66.66%> (?)
Impacted Files Coverage Δ
src/histogram.c 89.02% <66.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db23139...4c07897. Read the comment docs.

@cevian cevian merged commit 825645b into timescale:master Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Histogram with an empty data set crashes the database
2 participants